package com.zxw.user.mapper;

import com.zxw.user.domain.dto.RoleMenuDTO;
import com.zxw.user.domain.entity.RoleMenu;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author Xuewei.Zhang
 * @since 2022-02-28
 */
public interface RoleMenuMapper extends BaseMapper<RoleMenu> {

    List<RoleMenuDTO> getAllMenuByCompanyId(@Param("companyId") Long companyId);

    List<Long> selectMenuIdByRoleIdAndCompanyId(@Param("roleId") Long roleId, @Param("companyId") Long companyId);

}
